package demo05;

public class Test {
    public static void main(String[] args) {
        int[] a=new int[10];
        int sum=0;int i;
        double average;
        for(i=0;i<a.length;i++){
            a[i]=(int)(Math.random()*100+1);
            sum=sum+a[i];
        }
        average=sum/a.length;
        System.out.println(average);
    }
}
